package com.bs.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bs.entity.Acceptability;
import com.bs.mapper.AcceptabilityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service
public class AcceptabilityService extends ServiceImpl<AcceptabilityMapper, Acceptability> {

    @Autowired
    AcceptabilityMapper acceptabilityMapper;

    public List<HashMap<String, String>> getListByMonth(Integer id) {
        return acceptabilityMapper.getListByMonth(id);
    }

    public void updateAcceptability(Integer id){
        acceptabilityMapper.updateAcceptability(id);
    }

    public void addAcceptability(Integer id) {
        acceptabilityMapper.addAcceptability(id);
    }
}
